package io.ydjs.service.login.impl;

import io.ydjs.api.app.auth.request.PasswordLoginRequest;
import io.ydjs.api.app.auth.response.LoginResponse;
import io.ydjs.api.app.auth.service.AppAuthService;
import io.ydjs.service.login.AppLoginService;
import org.springframework.stereotype.Service;

@Service("appLoginService")
public class AppLoginServiceImpl implements AppLoginService {

    private final AppAuthService appAuthService;

    public AppLoginServiceImpl(AppAuthService appAuthService1) {
        this.appAuthService = appAuthService1;
    }

    @Override
    public LoginResponse info(PasswordLoginRequest request) {
        return appAuthService.login(request);
    }
}
